package com.charlotte.study.gupao.mediator.chatroom;

/**
 * @author junjie.ding
 * @date 2020/3/23
 */
public class Test {

    public static void main(String[] args) {

        ChatRoom chatRoom = new ChatRoom();

        User tom = new User("tom", chatRoom);

        User jerry = new User("jerry", chatRoom);

        tom.sendMsg("该死的耗子，看你往哪里跑！！");

        jerry.sendMsg("煞笔猫，有本事你来逮我啊！！");
    }
}
